<?php
class ExcretionModel extends Orm_Base{
    public $table = 'excretion';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'date' => array('type' => "varchar(10)",'comment' => '日期'),
        'big_status' => array('type' => "tinyint(1)",'comment' => '大便状态(1.正常、2.成形、3.稀便、4.不成形、5.浓便、6.便血)'),
        'small_status' => array('type' => "tinyint(1)",'comment' => '小便状态(1.正常、2.浑浊、3.带血、4.黄色、5.淡黄)'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
        'at' => array('type' => "tinyint(1)",'comment' => '时间点(1.早上、2.上午、3.中午、4.下午、5.晚上)'),
        'sid' => array('type' => "int(11)",'comemnt' => '关联老人ID'),
        'upd' => array('type' => "tinyint(4)",'comment' => '尿量'),
        'small_times' => array('type' => "tinyint(1)",'comment' => '小便次数'),
        'big_times' => array('type' => "tinyint(1)",'comment' => '大便次数'),
    );
    public $pk = 'id';
}
?>
